home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
59338
/
59338.xpi
/
chrome
/
global
/
scrollbars.css
< prev
next >
Wrap
Cascading Style Sheet File
|
2010-01-14
|
7KB
|
201 lines
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998-2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* ===== scrollbars.css =================================================
== Styles used by XUL scrollbar-related elements.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
/* ::::: scrollbar ::::: */
scrollbar {
-moz-appearance: none;
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
cursor: default;
}
scrollbar[orient="vertical"] {
-moz-appearance: none;
background: transparent url("chrome://global/skin/scrollbar/scroll-background.png") repeat-y;
width: 17px;
-moz-border-radius: 5px;
}
scrollbar[orient="horizontal"] {
background: transparent url("chrome://global/skin/scrollbar/scroll-background-horizontal.png") repeat-x;
height: 17px;
}
gripper {
-moz-box-flex: 1;
}
/* ::::: thumb (horizontal) ::::: */
thumb[orient="horizontal"] {
-moz-appearance: none;
background: transparent url("chrome://global/skin/scrollbar/thumb-startcap.png") no-repeat left;
min-width: 25px;
height: 17px;
border-right: 2px solid !important;
-moz-border-right-colors:#878583 #cdcccb !important;
border-left: 2px solid !important;
-moz-border-left-colors:#878583 #cdcccb !important;
-moz-border-radius: 6px;
}
thumb[orient="horizontal"] > gripper {
-moz-appearance: none;/*scrollbargripper-horizontal;*/
background: transparent url("chrome://global/skin/scrollbar/gripper-horizontal.png") no-repeat center !important;
height: 15px;
}
thumb[orient="horizontal"]:hover {
-moz-appearance: none;
background: transparent url("chrome://global/skin/scrollbar/thumb-startcap-hover.png") no-repeat left;
min-width: 25px;
height: 17px;
border-right: 2px solid !important;
-moz-border-right-colors:#81b7f2 #dbdad9 !important;
border-left: 2px solid !important;
-moz-border-left-colors: #81b7f2 #d9d8d7 !important;
-moz-border-radius: 6px;
}
/* ::::: thumb (vertical) ::::: */
thumb[orient="vertical"] {
-moz-appearance: none;
background: transparent url("chrome://global/skin/scrollbar/thumb-topcap.png") no-repeat top;
min-height: 25px;
border-bottom: 2px solid !important;
-moz-border-bottom-colors:#878583 #cdcccb !important;
border-top: 2px solid !important;
-moz-border-top-colors:#878583 #cdcccb !important;
-moz-border-radius: 6px;
}
thumb[orient="vertical"]:hover {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/thumb-topcap-hover.png");
border-top: 2px solid !important;
-moz-border-top-colors:#81b7f2 #dbdad9 !important;
border-bottom: 2px solid !important;
-moz-border-bottom-colors: #81b7f2 #d9d8d7 !important;
-moz-border-radius: 6px;
}
thumb[orient="vertical"]:active {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/thumb-topcap-hover.png");
border-top: 2px solid !important;
-moz-border-top-colors:#81b7f2 #dbdad9 !important;
border-bottom: 2px solid !important;
-moz-border-bottom-colors: #81b7f2 #d9d8d7 !important;
-moz-border-radius: 6px;
}
thumb[orient="vertical"] > gripper {
-moz-appearance: none;
background: transparent url("chrome://global/skin/scrollbar/gripper-vertical.png") no-repeat center !important;
width: 15px;
}
/* ::::: scrollbar button ::::: */
scrollbar[orient="horizontal"] > scrollbarbutton {
background-repeat: no-repeat;
min-width: 17px;
min-height: 15px;
}
scrollbar[orient="vertical"] > scrollbarbutton {
background-repeat: no-repeat;
min-width: 15px;
min-height: 17px;
}
/* ::::: square at the corner of two scrollbars ::::: */
scrollcorner {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
background-color: #E0DFDE;
width: 17px;
cursor: default;
}
/* ..... increment .... */
scrollbar[orient="horizontal"] > scrollbarbutton[type="increment"] {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
width: 17px;
height: 17px;
}
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
width: 17px;
height: 17px;
}
/* ..... decrement .... */
scrollbar[orient="horizontal"] > scrollbarbutton[type="decrement"] {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
width: 18px;
height: 17px;
}
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
-moz-appearance: none;
background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
width: 17px;
height: 18px;
}